YAHOO.namespace('Tesis.dialog');

YAHOO.Tesis.dialog = function(elContainer, url, w,h) {
    $("#"+elContainer).html("");
    $("#"+elContainer).html("<div class='hd'>&nbsp;</div>");
    YAHOO.Tesis.dialog.superclass.constructor.call(this, elContainer, this.construirConfig(w,h));
     
   this.setBody('<iframe frameborder="0" src="' + url + '" width="100%" height="100%"/>');
   this.render();
   
   
};

YAHOO.lang.extend(YAHOO.Tesis.dialog, YAHOO.widget.Dialog, {
    construirConfig: function(w,h) {
        return {
            width: w+"px", height: h+"px",
            modal: true, fixedcenter: true,
            visible: false, constraintoviewport: true,
            effect:{effect:YAHOO.widget.ContainerEffect.FADE ,duration:0.5} 
        };
    }
});